package br.com.lh.urabuilder.helper.dragdrop
{
	import flash.events.MouseEvent;
	
	import mx.containers.Canvas;
	import mx.core.DragSource;
	import mx.core.UIComponent;
	import mx.managers.DragManager;

	public class DragDropDelegator implements IDragAndDropDelegator
	{
		public function DragDropDelegator(){
		}

		public function startDragging(dragInitiator:UIComponent, dragSource:DragSource, event:MouseEvent, dragProxy:UIComponent):void{
			DragManager.doDrag(dragInitiator,dragSource,event,dragProxy);
		}
		
		public function endDragging(componentCanvas:Canvas):void{
			DragManager.acceptDragDrop(componentCanvas);
		}
		
	}
}